package com.ace.explore.test.actor;

import akka.actor.AbstractActor;

/**
 * Created by zhangwanli on 2017/9/12.
 */
public class GirlActor extends AbstractActor {

    @Override
    public Receive createReceive() {
        return receiveBuilder()
                .match(String.class, msg -> {
                    switch (msg) {
                        case "have a boy friend?":
                            System.out.println(msg);
                            getSender().tell("i dont have", getSelf());
                            break;
                    }
                }).build();
    }

}
